/**
 * Created by Administrator on 2016/10/8.
 */
    
var GameApp = jGame.AppObject.extend({

    ctor: function (id) {
        this._super();
        this._name = "GameApp";
    },

    initGlobalObject: function () {

        // init global controller here
        this.setObject("MainSceneController", app.getObject("MainScene"));

        this.setObject("MVCController", new MVCController());
        this.setObject("RichTextController", new RichTextController());
        this.setObject("TipsController", new TipsController());
        this.setObject("UIListViewController", new UIListViewController());

        // init global model here
        this.setObject("player", new PlayerModel(100));
    },

    reset: function () {
        cc.sys.localStorage.clear();
        app.runScene(res.MainScene_json);
    },
});